package com.ssy.lingxi.platform.manage.controller.feign;

import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.platform.manage.api.model.vo.parameter.PlatformParameterManageVO;
import com.ssy.lingxi.platform.manage.service.PlatformParameterManageService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;


/**
 * 平台参数管理内部feign接口
 * @author yzc
 * @version 2.0.0
 * @date 2021/8/5
 */
@RestController
@RequestMapping("/manage/feign")
public class ParameterManageFeignController {

    @Resource
    private PlatformParameterManageService platformParameterManageService;

    /**
     * 平台参数管理查询
     * @param code 参数编码
     * @return 返回结果
     */
    @GetMapping("/parameter/manage/details")
    public Wrapper<PlatformParameterManageVO> parameterManageDetails(@RequestParam("code") String code) {
        return platformParameterManageService.parameterManageDetails(code);
    }
}
